package org.raymond.iworks.study.basic.designpattern.adapter.obj;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class VoltageAdapter implements Voltage5V {
    private Voltage220V voltage220V;
    public VoltageAdapter(Voltage220V voltage220V){
        this.voltage220V = voltage220V;
    }
    @Override
    public int output5V() {
        int src = voltage220V.output220V();
        int dst = 5;
        System.out.println("电压="+dst+"伏");
        return dst;
    }
}
